#include <vector>

#include "util/util.h"

using namespace std;

/* ---<>-----------------------------------------------------------------------------------
		Function Prototypes
-------------------------------------------------------------------------------------------- */
vector<unsigned char> readLast(unsigned char data[], int BytesReceived, unsigned char& length);


void receiveFunc();
READ_ENUM comPortGetLast();
READ_ENUM comPortGet();
int  comPortInit(DWORD baud, uint16_t rxTime, uint16_t txTime);
uint16_t    comPortPut(uint8_t *packet, uint8_t length);
void        comPortClose();
int FTError(FT_STATUS status);

// Old ball
void processData(uint8_t *packet);
